Skip to content

Expose agent chat lifecycle APIs#171

Merged
kantorcodes merged 4 commits into
mainfrom
feat/agent-chat-sdk
May 7, 2026
Merged

Expose agent chat lifecycle APIs#171
kantorcodes merged 4 commits into
mainfrom
feat/agent-chat-sdk

Conversation

@kantorcodes

Copy link
Copy Markdown
Member

Shipped behavior

  • Adds Registry Broker SDK schemas, types, and client methods for readiness, retry, cancel, enriched send/session responses, widened history roles, and end-session responses.
  • Updates client coverage for lifecycle fields and idempotent/retry/cancel/end flows.

Verification

  • pnpm run lint — passed.
  • pnpm run typecheck — passed.
  • pnpm exec jest --config jest.config.json --coverage=false --runTestsByPath __tests__/services/registry-broker-client.test.ts --runInBand — passed, 40 tests.
  • pnpm run build — passed.

Docker/local e2e

Command: cd ../registry-broker && docker compose --profile extras up -d elasticsearch rocksdb-sidecar qdrant registry-broker ping-agent && pnpm run e2e:agent-chat

Result: registration status 200 from register-endpoint; readiness responsive/a2a/direct; session ready; send responded with assistant_response; idempotent duplicate returned same message id; history roles user and agent; retry responded; end-session ended.

Signed-off-by: Michael Kantor <6068672+kantorcodes@users.noreply.github.com>
@kantorcodes kantorcodes requested a review from HGraphPunks as a code owner May 6, 2026 13:37

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces several enhancements to the registry broker client, including new functionality for chat readiness checks, message retries, and session cancellation. It also updates the session termination process to return structured responses and expands Zod schemas and TypeScript types to support new fields such as idempotency keys, visibility settings, and delivery states. The review feedback suggests adding robust input validation and string trimming for identifiers and payload properties across the new methods to prevent malformed API requests.

Comment thread src/services/registry-broker/client/chat.ts
Comment thread src/services/registry-broker/client/chat.ts Outdated
Comment thread src/services/registry-broker/client/chat.ts
Comment thread src/services/registry-broker/client/chat.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3f0b4b1af4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/services/registry-broker/client/chat.ts Outdated
Signed-off-by: Michael Kantor <6068672+kantorcodes@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 40bf0f5e91

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/services/registry-broker/client/chat.ts
Comment thread src/services/registry-broker/client/chat.ts Outdated
Signed-off-by: Michael Kantor <6068672+kantorcodes@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 720732fe9f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/services/registry-broker/client/chat.ts Outdated
Comment thread src/services/registry-broker/client/chat.ts
Signed-off-by: Michael Kantor <6068672+kantorcodes@users.noreply.github.com>
@kantorcodes kantorcodes merged commit ef4c8f1 into main May 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant